import Vue from 'vue'
import App from './App'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import axios from 'axios'
import VueAxios from 'vue-axios'

import router from './router'

import less from 'less'

import homeJs from './assets/mainFile/home.js'

Vue.use(less);
Vue.use(VueAxios, axios);

Vue.use(ElementUI);

Vue.config.productionTip = false;
//登录验证号
Vue.prototype.$loginPass = homeJs;
// 定义全局变量
Vue.prototype.baseUrl = "http://localhost:8080";
Vue.prototype.imgUrl = "http://localhost:8080";
// 主页1上传地址
Vue.prototype.uploadIndex1 = "http://localhost:8080/index/post/addStory/uploadImg";
// 主页2上传地址
Vue.prototype.uploadIndex2 = "http://localhost:8080/index2/post/uploadImg";
Vue.prototype.upload2Teacher = "http://localhost:8080/index2/post/teacher/uploadImg";
Vue.prototype.upload2Hp = "http://localhost:8080/index2/post/portfolio/uploadImg";
// 主页3上传地址
Vue.prototype.uploadIndex3 = "http://localhost:8080/index3/post/uploadImg";

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  render: h => h(App)
})
